/*
 * @Description: main description
 * @Author: zhang zhen
 * @Date: 2022-12-12 15:59:40
 * @LastEditors: zhang zhen
 * @LastEditTime: 2023-03-24 16:30:52
 * @FilePath: /flieView/vite.config.js
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  // base: '/exploreX6Example/',
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    port: 8000,
    proxy: {
      '/api': {
        target: 'http://192.168.0.100:3002',
        changeOrigin: true,
        ws: false,
        rewrite: path => path.replace(/^\/api/, '')
      }
    }
  },
})
